package interface_.jdk8;

/**
 * Created with IntelliJ IDEA.
 * ClassName: SubClass
 * Package: interface_.jdk8
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-11-25
 * Time: 14:54
 */

public class SubClass implements CompareA, CompareB {

    //接口当中 没有抽象方法 也不涉及到重写


    @Override
    public void method2() {
        System.out.println("SubClass 默认方法可以重写");
    }

    @Override
    public void method3() {
        System.out.println("同名方法必须重写");
    }
}
